<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>QQ客服左右悬挂插件-Jquery插件库-林氏智造</title>
		<link href="css/reset.css" rel="stylesheet" />
		<link href="css/style.css" rel="stylesheet" />
		<link href="css/ui.css" rel="stylesheet" />
		<link href="css/shCoreDefault.css" rel="stylesheet" />
		<script type="text/javascript" src="js/jquery-1.10.0.min.js"></script>
		<script type="text/javascript" src="js/shCore.js"></script>
		<script type="text/javascript" src="js/shBrushCSharp.js"></script>
		<script type="text/javascript">SyntaxHighlighter.all();</script>
		<script type="text/javascript" src="js/lin_fixedQQ.1.0.js"></script>
		<script type="text/javascript">
			$(function(){
				$("#demo1").lin_fixedQQ();
				$("#demo2").lin_fixedQQ({leftOrRight:"left",defaultY:35});
			});
		</script>
	</head>
	<body id="main">
		
		<div class="slidebar">
			<a href="http://www.0773linji.com" title="林氏智造" class="logo">林氏智造</a>
			<div class="slidebar_title">Jquery<span class="ver">插件库</span></div>
			<iframe src="../menu.html" frameborder="0"></iframe>
		</div>
		
		<div class="content">
			
			<div class="caption"><h2>QQ客服左右悬挂插件</h2><span class="file">Define in : lin_fixedQQ.1.0.js</span></div>
			
			<div class="mod_desc">
        			<p>又是一个定位控制的插件。</p>
    			</div>
    			
    			<h3 class="title_lv2">
    				$("<span>target</span>").lin_fixedQQ([ <em>options</em> ]);
    			</h3>
    			
    			<dl class="deps">
        			<dt>依赖</dt>
        			<dd>JS : jquery-1.10.0.min.js</dd>
        			<dd>浏览器 : ie7+</dd>
    			</dl>
    			
    			<div class="params_box">
				<h5>参数</h5>
				<ul class="params_list">
					<li>
						<dl>
							<dt>target</dt>
							<dd>String</dd>
						</dl>
						<div class="params_desc">
							<span class="type required">必需</span>
							<p>target DOM元素ID或者DOM元素class,对匹配元素进行插件绑定。</p>
						</div>
					</li>
					<li>
						<dl>
							<dt>options</dt>
							<dd>Object</dd>
						</dl>
						<div class="params_desc">
							<span class="type optional">可选</span>
							<p>多选形式的可配置参数。</p>
						</div>
					</li>
				</ul>
			</div>
			
			<div class="article_box">
        			<p>下表列出了options参数介绍。</p>
    			</div>
    			
    			<table class="props_tb">
        <colgroup>
            <col style="width:130px">
            <col style="width:100px">
            <col style="width:70px">
            <col style="width:370px">
        </colgroup>
        <thead>
            <tr class="even">
                <th>参数</th>
                <th>数据类型</th>
                <th>默认值</th>
                <th>说明</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td><b class="name">hiddenObj</b></td>
                <td><span class="type">String</span></td>
                <td><span class="normal">.lin_qqonline</span></td>
                <td class="t_l">
                    <p>客服界面隐藏时所要显示的界面样式</p>
                </td>
            </tr>
            <tr class="even">
                <td><b class="name">showObj</b></td>
                <td><span class="type">String</span></td>
                <td><span class="normal">.lin_qqInfo</span></td>
                <td class="t_l">
                    <p>客服界面样式</p>
                </td>
            </tr>
            <tr>
                <td><b class="name">defaultY</b></td>
                <td><span class="type">int</span></td>
                <td><span class="normal">100</span></td>
                <td class="t_l">
                    <p>垂直初始距离</p>
                </td>
            </tr>
            <tr class="even">
                <td><b class="name">defaultX</b></td>
                <td><span class="type">int</span></td>
                <td><span class="normal">0</span></td>
                <td class="t_l">
                    <p>水平初始距离</p>
                </td>
            </tr>
            <tr>
                <td><b class="name">leftOrRight</b></td>
                <td><span class="type">String</span></td>
                <td><span class="normal">right</span></td>
                <td class="t_l">
                    <p>左右浮动控制</p>
                    <p><b>left</b> 左</p>
                    <p><b>right</b> 右</p>
                </td>
            </tr>
        </tbody>
    </table>
    
    
    <div class="example_box">
        <h5>例子一：基本调用</h5>
        <p>HTML</p>
        <div class="code_box">
        		<pre class="brush: csharp;"><div class="lin_qqFloat" id="插件挂接ID">
           		<div class="lin_qqInfo">
 					<span>在线客服</span>
 					<ul class="lin_QQshow">
     					<li><a href="tencent://message/?uin=317365887&Site=林氏智造
&Menu=yes" title="答疑客服" class="lin_subQQ">qq</a></li>
     					<li><a href="tencent://message/?uin=317365887&Site=林氏智造
&Menu=yes" title="售后客服" class="lin_subQQ2">qq</a></li>  
     					<li><a href="tencent://message/?uin=317365887&Site=林氏智造
&Menu=yes" title="在线咨询" class="lin_subQQLan">qq</a></li>      
 					</ul>                            
 				</div>
  				<div class="lin_qqonline"></div>        
			</div></pre>
        </div>
		<p>CSS</p>    
        <div class="code_box">
        		<pre class="brush: csharp;">.lin_qqFloat{position:absolute;}
.lin_qqonline{width:33px;height:158px;z-index:10;background: url(qq_1.png) no-repeat;} 
.lin_qqInfo{width:121px;height:260px;background:url(qqkuang.gif) no-repeat;display:none;position:absolute;}  
.lin_qqInfo span{height:16px;text-align:center;padding-top:6px;display:block;font-size:12px;color:#FFFFFF;font-family:宋体, arial, helvetica, sans-serif;}  
.lin_QQshow{width:106px;margin-top:9px;padding-left:15px;}    
.lin_QQshow li{padding-bottom:5px;}
.lin_subQQ{display:block;width:95px;height:38px;text-indent:-9999px;background:url(service_ico2.gif) no-repeat -5px -3px}
.lin_subQQ2{display:block;width:95px;height:38px;text-indent:-9999px;top:5px;left:110px;background:url(service_ico2.gif) no-repeat -104px -3px}
.lin_subQQLan{display:block;width:95px;height:38px;text-indent:-9999px;top:5px;left:110px;background:url(service_ico.gif) no-repeat -104px -3px}</pre>
        </div>        
		<p>JS</p>    
        <div class="code_box">
        		<pre class="brush: csharp;">$("#demo1").lin_fixedQQ();
$("#demo2").lin_fixedQQ({leftOrRight:"left",defaultY:35});</pre>
        </div>        
        
        <div class="demo_box">
            
            
            <div class="lin_qqFloat" id="demo1">
           		<div class="lin_qqInfo">
 					<span>在线客服</span>
 					<ul class="lin_QQshow">
     					<li><a href="tencent://message/?uin=317365887&Site=林氏智造
&Menu=yes" title="答疑客服" class="lin_subQQ">qq</a></li>
     					<li><a href="tencent://message/?uin=317365887&Site=林氏智造
&Menu=yes" title="售后客服" class="lin_subQQ2">qq</a></li>  
     					<li><a href="tencent://message/?uin=317365887&Site=林氏智造
&Menu=yes" title="在线咨询" class="lin_subQQLan">qq</a></li>      
 					</ul>                            
 				</div>
  				<div class="lin_qqonline"></div>        
			</div>
            <div class="lin_qqFloat" id="demo2">
           		<div class="lin_qqInfo">
 					<span>在线客服</span>
 					<ul class="lin_QQshow">
     					<li><a href="tencent://message/?uin=317365887&Site=林氏智造
&Menu=yes" title="答疑客服" class="lin_subQQ">qq</a></li>
     					<li><a href="tencent://message/?uin=317365887&Site=林氏智造
&Menu=yes" title="售后客服" class="lin_subQQ2">qq</a></li>  
     					<li><a href="tencent://message/?uin=317365887&Site=林氏智造
&Menu=yes" title="在线咨询" class="lin_subQQLan">qq</a></li>      
 					</ul>                            
 				</div>
  				<div class="lin_qqonline"></div>        
			</div> 
			
            
        </div>
        
    </div>
    
    
    <div class="download">
        <h3>立即下载</h3>
        <div class="download_box">
            <a href="#" target="_blank" class="btn_download btn_download_wide">
                <span class="icon_box"><s class="icon_download"></s></span>
                <span class="title">lin_fixedQQ</span>
                <span class="version">version : 1.0</span>
            </a>
        </div>
    </div>
    
    <div class="download">
        <h3>联系我</h3>
        <div class="download_box">
           <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=317365887&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:317365887:53" alt="请注明通过林氏智造发现此QQ" title="请注明通过林氏智造发现此QQ"/></a>
        </div>
    </div>
			
			
		</div>
		
	</body>
</html>
